﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="PedidoClienteAdmin.aspx.cs" Inherits="ForrajeriaFRONT.PedidoClienteAdmin" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style5
        {
            width: 276px;
        }
        .style9
        {
            width: 222px;
        }
        .style11
        {
            width: 24px;
        }
        .style12
        {
            height: 20px;
        }
        .style13
        {
            width: 60px;
            height: 27px;
        }
        .style14
        {
            width: 276px;
            height: 27px;
        }
        .style15
        {
            width: 222px;
            height: 27px;
        }
        .style16
        {
            width: 24px;
            height: 27px;
        }
        .style17
        {
            height: 27px;
        }
        .style18
        {
            width: 165px;
        }
        .style19
        {
            width: 127px;
        }
        .style20
        {
            width: 60px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table class="style1">
        <tr>
            <td class="style13">
                <asp:Label ID="lblPedido" runat="server" Text="Pedidos:" style="color: #000000"></asp:Label>
                </td>
            <td class="style14">
                </td>
            <td class="style15">
                <asp:DropDownList ID="ddlEstado" runat="server" Height="25px" Width="145px">
                    <asp:ListItem Value="1">Pediente</asp:ListItem>
                    <asp:ListItem Value="2">Autorizado</asp:ListItem>
                    <asp:ListItem Value="3">Facturado</asp:ListItem>
                    <asp:ListItem Value="4">Dado De Baja</asp:ListItem>
                    <asp:ListItem Value="5">No autorizado</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td class="style16">
                </td>
            <td class="style17">
                <asp:Button ID="Button1" runat="server" Text="Buscar" Width="117px" 
                    onclick="Button1_Click" />
            </td>
        </tr>
        <tr>
            <td class="style20">
                &nbsp;</td>
            <td class="style5">
                &nbsp;</td>
            <td class="style9">
                &nbsp;</td>
            <td class="style11">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td colspan="5">
    <asp:GridView ID="GridPedido" runat="server"   
            CellPadding="4" ForeColor="#333333" GridLines="None" Width="100%" 
            OnSelectedIndexChanging="gridDatos_SelectedIndexChanging"
        onselectedindexchanged="gridDatos_SelectedIndexChanged" AutoGenerateColumns="False" 
                    AllowPaging="True">
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        <Columns>
            <asp:BoundField DataField="id_cliente" HeaderText="ID Cliente"/>
            <asp:BoundField DataField="nroPedido" HeaderText="Numero Pedido"/>
            <asp:BoundField DataField="FechaPedido" HeaderText="Fecha de Pedido"/>
            <asp:BoundField DataField="FechaAuto" HeaderText="Fecha de Autorizacion"/>
            <asp:BoundField DataField="FechaDeseada" HeaderText="Fecha Deseada"/>
            <asp:BoundField DataField="totalPedido" HeaderText="Total Pedido"/>
            <asp:BoundField DataField="estadoPedido" HeaderText="Estado Pedido"/>
            <asp:CommandField ButtonType="Image" CancelText="" InsertText="" NewText="" 
                    SelectText="" UpdateText="" EditText="" 
                    HeaderText="Seleccionar" SelectImageUrl="~/images/selectBusqueda.jpg" 
                    ShowSelectButton="True" />
           
        </Columns>
        <EditRowStyle BackColor="#999999" />
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" 
                HorizontalAlign="Center" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#EDEAE4" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#E9E7E2" />
        <SortedAscendingHeaderStyle BackColor="#506C8C" />
        <SortedDescendingCellStyle BackColor="#FFFDF8" />
        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
    </asp:GridView>
    
            </td>
        </tr>
        <tr>
            <td class="style20">
                &nbsp;</td>
            <td class="style5">
                &nbsp;</td>
            <td class="style9">
                &nbsp;</td>
            <td class="style11">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        </table>
    <div>
    
        <table class="style1">
            <tr>
                <td class="style12" colspan="5">
                    <asp:Label ID="Label1" runat="server" Text="Detalle de Pedido:" 
                        style="color: #000000"></asp:Label>
                </td>
            </tr>
            <tr>
                <td colspan="5">
                    &nbsp;</td>
            </tr>
            <tr>
                <td colspan="5">
    <asp:GridView ID="GridDetalle" runat="server"   
            CellPadding="4" ForeColor="#333333" GridLines="None" Width="100%"
            EnableSortingAndPagingCallbacks="True" DataKeyNames="codigoForraje"
            
        onselectedindexchanged="gridDatos_SelectedIndexChanged1" AutoGenerateColumns="False" 
                        AllowPaging="True">
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        <Columns>
            <asp:BoundField DataField="nombreForraje" HeaderText="Forraje"/>
            <asp:BoundField DataField="Nombre" HeaderText="Marca" Visible="false" />
            <asp:BoundField DataField="peso" HeaderText="Peso" />
            <asp:BoundField DataField="descripcion" HeaderText="Edad" />
            <asp:BoundField DataField="cantidad" HeaderText="Cantidad" />
            <asp:BoundField DataField="precio" HeaderText="Precio" />
            
            
           
        </Columns>
        <EditRowStyle BackColor="#999999" />
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" 
                HorizontalAlign="Center" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#EDEAE4" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#E9E7E2" />
        <SortedAscendingHeaderStyle BackColor="#506C8C" />
        <SortedDescendingCellStyle BackColor="#FFFDF8" />
        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
    </asp:GridView>
    
                </td>
            </tr>
            <tr>
                <td colspan="5">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style19">
        <asp:Label ID="lblMensaje" runat="server" ForeColor="Red"></asp:Label>
                </td>
                <td>
                    &nbsp;</td>
                <td class="style18">
                    <asp:Button ID="btnAutorizar" runat="server" onclick="btnAutorizar_Click" 
                        Text="Autorizar" Width="106px" Height="29px" />
                </td>
                <td>
                    <asp:Button ID="btnDarDeBaja" runat="server" Height="29px" 
                        onclick="btnDarDeBaja_Click" Text="Dar de Baja" Width="106px" />
                </td>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
    
    </div>
    <div>
    </div>

</asp:Content>
